<template>
  <div class="Header">
    <div class="title">OVERLOOK</div>
    <el-button type="primary" plain class="loginbutton" @click="gotoLogin"
      >登录</el-button
    >
    <el-button type="success" plain class="button" @click="gotoRegister"
      >注册</el-button
    >
  </div>
</template>

<style scoped>
.Header {
  display: flex;
  text-align: center;
  height: 80px;
}

.title {
  margin-left: 150px;
  font-size: 25px;
  color: #409eff;
  line-height: 80px;
}

.loginbutton,
.button {
  margin-top: 15px;
  width: 100px;
  height: 50px;
}
.loginbutton {
  margin-left: 750px;
}
.button {
  margin-left: 50px;
}
</style>

<script>
export default {
  methods: {
    gotoHome: function () {
      this.$router.push("/");
    },
    gotoLogin() {
      this.$router.push("/login");
    },
    gotoRegister() {
      this.$router.push("/register");
    },
  },
};
</script>